package com.example.homework.adapters

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import com.example.homework.databinding.LoadingFooterBinding

class FootLoadStateAdapter : LoadStateAdapter<FootLoadStateViewHolder>() {
    override fun onBindViewHolder(holder: FootLoadStateViewHolder, loadState: LoadState) = Unit

    override fun onCreateViewHolder(
        parent: ViewGroup,
        loadState: LoadState
    ): FootLoadStateViewHolder {
        return FootLoadStateViewHolder(
            LoadingFooterBinding.inflate(
                LayoutInflater.from(parent.context),
                parent,
                false
            )
        )
    }
}